package com.atguigu.spzx.order.service;

import com.atguigu.spzx.model.dto.h5.OrderInfoDto;
import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.h5.TradeVo;
import com.github.pagehelper.PageInfo;

/**
 * @ClassName: OrderInfoService
 * @Package: com.atguigu.spzx.order.service
 * @Description
 * @Author 孤妤
 * @Date: 2023/12/20 18:14
 */
public interface OrderInfoService {
    /**
     * @description: 查询订单结算页面的商品列表与结算金额
     **/
    TradeVo findOrderInfo();
    /**
     * @description: 提交订单
     **/
    Long submitOrder(OrderInfoDto orderInfoDto);
    /**
     * @description: 支付页面展示的信息
     * @param: 订单数据的orderId
     **/
    OrderInfo findOrderInfoByOrderId(Long orderId);
    /**
     * @description: 点击立即购买跳转到提交订单页面
     * @param: 商品的skuId
     **/
    TradeVo findOrderInfoBySkuId(Long skuId);
    /**
     * @description: 我的订单
     * @param: 分页条件及订单状态
     **/
    PageInfo<OrderInfo> findMyOrderPage(Integer page, Integer limit, Integer orderStatus);
}
